
[dbo].[BAEProductGetByType]
CREATE procedure [dbo].[BAEProductGetByType] @ActivityType as varchar(500)
AS
IF @ActivityType = ''
BEGIN
SELECT *
FROM Product_Type;
END
ELSE
Begin
SELECT *
FROM Product_Type
WHERE Upper(PROD_TYPE) IN (Select Element from asi_SplitString(@ActivityType, ','))
End
GO